package com.hzdl.car.util;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

public class TreeNode implements Serializable {
    private  Integer id;
    @JsonProperty("parentId")
    private  Integer pId;
    private  String title;
    private  String icon;
    private  String href;
    private  Boolean spread;
    private  String target;
    private List<TreeNode> children=new ArrayList<>();
    private String checkArr="0";

    @Override
    public String toString() {
        return "TreeNode{" +
                "id=" + id +
                ", pId=" + pId +
                ", title='" + title + '\'' +
                ", icon='" + icon + '\'' +
                ", href='" + href + '\'' +
                ", spread=" + spread +
                ", target='" + target + '\'' +
                ", children=" + children +
                ", checkArr='" + checkArr + '\'' +
                '}';
    }

    public String getCheckArr() {
        return checkArr;
    }

    public void setCheckArr(String checkArr) {
        this.checkArr = checkArr;
    }

    public TreeNode(Integer id, Integer pId, String title, String icon, String href, Boolean spread, String target) {
        this.id = id;
        this.pId = pId;
        this.title = title;
        this.icon = icon;
        this.href = href;
        this.spread = spread;
        this.target = target;
    }

    public TreeNode(Integer id, Integer pId, String title, Boolean spread, String checkArr) {
        this.id = id;
        this.pId = pId;
        this.title = title;
        this.spread = spread;
        this.checkArr = checkArr;
    }

    public TreeNode() {
    }

    public String getIcon() {
        return icon;
    }

    public void setIcon(String icon) {
        this.icon = icon;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Integer getpId() {
        return pId;
    }

    public void setpId(Integer pId) {
        this.pId = pId;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHref() {
        return href;
    }

    public void setHref(String href) {
        this.href = href;
    }

    public Boolean getSpread() {
        return spread;
    }

    public void setSpread(Boolean spread) {
        this.spread = spread;
    }

    public String getTarget() {
        return target;
    }

    public void setTarget(String target) {
        this.target = target;
    }

    public List<TreeNode> getChildren() {
        return children;
    }

    public void setChildren(List<TreeNode> children) {
        this.children = children;
    }
}
